package com.bjpowernode.boss.common.utils;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;

/**
 * @author yu
 * @date 2024/7/10  16:16
 */

public class NumberUtil {
    /**
     * 表的主键
     * @return 32位的UUID
     */
    public static String getUUID() {
        return IdWorker.get32UUID() ;
    }

    /**
     * 用户（商户）id
     * IdWorker.getId() 雪花算法生成的id值
     * @return
     */
    public static String getUserNo() {
        return "8" + IdWorker.getId() ;
    }

    /**
     * 账户Id
     * @return
     */
    public static String getAccountNo() {
        return "9" + IdWorker.getId() ;
    }
}
